<extend name="Public:common"/>
<block name="main">
  <style>
    .code .container > textarea{ height:100%; }
    .translate{color: #9fa3a7 !important;font-size:12px !important;}
    .translate a{font-size:12px !important;color:#9fa3a7 !important;}
    .translate a:hover {font-size:12px !important;color:#f15142 !important;}
    .newslist{padding:10px 5px;height:20px !important;line-height:20px;overflow:hidden;text-overflow: ellipsis;white-space: nowrap;border-bottom:1px solid #eee}
    .fake-video-btn:hover{
      cursor: pointer;
      border-style: solid;
      border-width: 2px;
      border-radius: 63px;
      border-color: #00c1de;
    }
    .it-player-wrap {
      display: flex;
      flex-direction: row;
      box-sizing: border-box;
      padding: 5px;
      margin-bottom: 20px;
      background: #FBFBFB;
      border: 1px solid #EFEFEF;
      border-radius: 4px;
    }

    .it-player-wrap .control {
      width: 50px;
      height: 50px;
      background-color: #57a5f2;
      margin-right: 15px;
      border-radius: 50%;
    }

    .it-player-wrap .control .play,.it-player-wrap .control .pause {
      background-size: 30px !important;
      color: #ffffff;
      width: 100%;
      height: 100%;
    }

    .it-player-wrap .control .play {
      background: url("") no-repeat center;

    }

    .it-player-wrap .control .pause {
      background: url("") no-repeat center;
    }

    .it-player-wrap .box {

      flex: 1;
    }

    .it-player-wrap .box .info {
      font-family: PingFang-SC-Regular;
      font-size: 12px;
      color: #A8A8A8;
      text-align: left;
      line-height: 24px;
      margin: 0;
    }

    .it-player-wrap .box .info .size {
      display: inline-block;
      margin-right: 15px;
    }

    .it-player-wrap .progress-wrap {
      position: relative;
      margin-top: 15px;
      display: flex;
      flex-direction: row;
      align-items: center;
    }

    .it-player-wrap .progress-line,.it-player-wrap  .progress-line-inner {
      position: absolute;
      height: 6px;
      width: 100%;
      background: #DDECFF;
      border-radius: 8.5px;
    }

    .it-player-wrap .progress-line-inner {
      background: #4C83E5 !important;
    }

    .it-player-wrap .progress-button {
      position: absolute;
      width: 50px;
      height: 20px;
      background: #4C83E5;
      box-shadow: 0 2px 4px 0 #A0C2FF;
      border-radius: 10px;
      top: -10px;
      font-family: PingFang-SC-Regular;
      font-size: 12px;
      color: #FFFFFF;
      text-align: center;
      line-height: 20px;

      cursor: pointer;
    }
  </style>


  <style>
    .crumb{
      padding: 10px;
      margin-bottom: 10px;
      border-bottom: 1px solid rgba(238,238,238,0.4);
    }
    .crumb p{
      width: 1200px;
      margin: 0 auto;
    }
    .newul{
      line-height: 25px;
    }
    .new-item{
      padding: 5px;
      display: block;
      width: 250px;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
    }
    #doc-content img{
      margin:none;
      display:initial;
    }

    .syntaxhighlighter{
      width:890px;
    }

    .syntaxhighlighter td.code .line{
      white-space: nowrap;
    }

    .syntaxhighlighter td.code .container{
      width:840px!important;
    }

    .syntaxhighlighter td.code{
      overflow: scroll!important;
    }

  </style>
  <div class="crumb">
    <p>
      <a href="/">{$Cats.126.catname}</a> >
      <a href="/articleType/{$parent_category.id}">{$parent_category.catname}</a> >
      <a href="/articleType/{$children_category.id}">{$children_category.catname}</a> >
      <a>{$title}</a>
    </p>
  </div>
  <!--main部分开始-->
  <div class="blog-main clearfix w1200">
    <div class="preview-wrap">
      <div class="preview-header">
        <h1 class="preview-title ">{$title}</h1>
        <div class="mess">
          <span style="margin: auto 10px auto 0px"><a href="/articleType/{$children_category.id}">{$children_category.catname}</a></span>
          <span>时间：<?=date("Y-m-d H:i:s", $createtime)?></span>
          <span class="dian"></span>
          <span class="icon-see">{$hits}</span>
        </div>
      </div>
      <div class="preview-body windowH">

        <div class="preview-main">

          <div id="doc-content" style="padding: 0px;">{$content}</div>
          <p style="clear:both;"></p>
          <p class="translate">
            来自 “ {$site_name} ”，如需转载，请注明出处，否则将追究法律责任。
          </p>

        </div>
      </div>
      <div class="article-context">
        <if condition="$prev">
          <div class="fl">
            <span class="color77">上一篇：</span>
            <a href="/news/{$prev.id}">{$prev.title}</a>
          </div>
        </if>
        <if condition="$next">
          <div class="fr">
            <span class="color77">下一篇：</span>
            <a href="/news/{$next.id}">{$next.title}</a>
          </div>
        </if>
      </div>
    </div>
    <script>
    </script>
    <div class="fr w290">
      <!--博文推荐开始-->
      <div class="blog-choice right-fixed">
        <h3 class="choice-title">最新文章</h3>
        <ul class="newul">
          <foreach name="newArticle" item="item">
            <li class="new-item">
              <a href="/news/{$item.id}" class="clearfix">{$item.title}</a>
            </li>
          </foreach>
        </ul>
      </div>
      <!--大牛精选结束-->
    </div>
  </div>
  <div class="icon-back-top" onclick="$('html,body').animate({scrollTop:0},'slow');"></div>
  <!--main部分结束-->
</block>
